package org.onion.pattern.sample.order.listener;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.onion.pattern.sample.order.doamin.pay.event.PayCancelEvent;
import org.onion.pattern.sample.order.doamin.pay.event.PayEvent;
import org.onion.pattern.sample.order.doamin.pay.event.PayRefundEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class CateringOrderListener {

    @EventListener
    public void on (PayCancelEvent event){
   //1. 通知正常

//        ObjectMapper

    }

    @EventListener
    public void on2 (PayCancelEvent event){

    }



    @EventListener
    public void on (PayRefundEvent event){

    }


}
